package com.book.service;

import com.book.dao.classroomDao;
import com.book.po.classroom;
import com.book.po.odMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class classroomService {

    @Autowired
    private classroomDao classroomDao;

    public List<classroom> room_select(classroom classroom){
        return classroomDao.room_select(classroom);
    };
    public List<odMap> get_room(classroom classroom){
        return classroomDao.get_room(classroom);
    }

//    public String book_insert(Book book){
//        if (bookDao.book_insert(book)!=0){
//            return "添加成功";
//        }else {
//            return "添加失败";
//        }
//    };
//
//    public String book_delete(Integer bookId){
//        if (bookDao.book_delete(bookId)!=0){
//            return "删除成功";
//        }else {
//            return "删除失败";
//        }
//    }
//
//    public String book_update(Book book){
//        if (bookDao.book_update(book)!=0){
//            return "修改成功";
//        }else {
//            return "修改失败";
//        }
//    }
}
